Object::AbstractMethod

Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:54:57 1991
Index Return to Main Contents
 

NAME

Object::AbstractMethod - instance method  

TEMPLATE

void AbstractMethod(char * methodName)  

SPECIFIERS

public  

DESCRIPTION

AbstractMethod is to be called in the body of an abstract method. Calling AbstractMethod results in a warning (see Error Handling, DoError), so the client eventually sees that he has forgot to override the calling method. As good programming practice, every abstract method should call it.
Note that the methodName should not be qualified, i.e the class name will be automatically prepended.
AbstractMethod is a standardized short-cut to trigger the error handler (see DoError). Using AbstractMethod makes the code more expressive.
See also method MayNotUse (and method Warning etc.). For non-regular classes, there is the function AbstractMethod (see "Error.[hC]") with the same purpose.  

ARGUMENTS

char * methodName

the (unqualified) name of an abstract method
 

RETURN ARGUMENT

void

 

CATEGORIES

fire walls, client interface

 

FILES

implementation:
Object.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:26 GMT, March 30, 2022